<template>
	<el-select v-model="checked" placeholder="请选择上级pi审核员">
		<el-option v-for="(item, index) in list" :key="index" :label="item.userName" :value="item.id"></el-option>
	</el-select>
</template>

<script>
export default {
	props: {
		value: { type: String, default: '' },
		list: { type: Array, default: () => [] }
	},
	data() {
		return {
			checked: this.value
		};
	},
	watch: {
		value(val) {
			this.checked = val;
		},
		checked(val) {
			this.$emit('input', val);
		}
	}
};
</script>

<style scoped></style>
